﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Main.master" AutoEventWireup="true"
    CodeFile="Registry.aspx.cs" Inherits="Web_Registry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table style="width: 100%; text-align: left; margin: 20px 0px 0px 50px;">
        <tr>
            <td style="width: 200px;">
                Name:
            </td>
            <td>
                <asp:Label ID="lblName" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                Client Name:
            </td>
            <td>
                <asp:TextBox ID="txtClient" runat="server" Width="400px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Type of Service:
            </td>
            <td>
                <asp:DropDownList ID="ddlService" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                Note:
            </td>
            <td>
                <asp:TextBox ID="txtNote" Width="500px" Height="100px" TextMode="MultiLine" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblInfo" ForeColor="Red" runat="server" Text=""></asp:Label>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Text="Submit" />
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table border="1px" style="width:80%; border-collapse:collapse; border-spacing:1px; border-width:thin;border-style:solid;">
                    <tr>
                        <td>
                            Client Name
                        </td>
                        <td>
                            Note
                        </td>
                        <td>
                            IP
                        </td>
                        <td>
                            Register Time
                        </td>
                        <td>
                            Duration
                        </td>
                    </tr>
                    <asp:Repeater runat="server" ID="rpt">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <%# Eval("ClientName")%>
                                </td>
                                <td>
                                    <%# Eval("Note")%>
                                </td>
                                <td>
                                    <%# Eval("Ip") %>
                                </td>
                                <td>
                                    <%# Eval("RegisterTime") %>
                                </td>
                                <td>
                                    <%# Eval("Duration") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </table>
                <%--<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True">
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:EmployeeTrackingConnectionString %>">
                </asp:SqlDataSource>--%>
            </td>
        </tr>
    </table>
</asp:Content>
